var express = require('express');
var router = express.Router();
var usersController = require('../controller/users');

/* GET users listing. */
router.get('/', (req, res, next) => {
  res.send('respond with a resource');
});

router.all('/register', usersController.register);

router.all('/login', usersController.login);

router.get('/getLoginInfo', usersController.getLoginInfo);

router.get('/logout', usersController.logout);

module.exports = router;
